Fix pos-visible-in-window-p under bidi redisplay when lines are truncated.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:42:24 +0000 (13:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:42:24 +0000 (13:42 +0300)
commit4fbdbb92126724b66c92fc6ae4f6ff2dd7ad19c5
tree5e35b57b41d979f6615ec96a455e093d498ab3b3
parent1b016ac5c567c65dae78ea7d0adec7bc284185b5
Fix pos-visible-in-window-p under bidi redisplay when lines are truncated.

 src/xdisp.c (move_it_in_display_line_to): Record the best matching
 position for TO_CHARPOS while scanning the line, and restore it on
 exit if none of the characters scanned was an exact match.  Fixes
 vertical-motion and pos-visible-in-window-p when exact match is
 impossible due to invisible text, and the lines are truncated.
src/ChangeLog
src/xdisp.c